
<h2>Database Configuration</h2>

<div class="settings">
    <fieldset>
        <legend>MySQL Configuration</legend>
        <div class="fieldset-inside">
            <span class="note">Please make sure you have <b>created the database first using mysql/phpmyadmin</b> before filling up the form below.</span>
            <?php
                echo $form->create(array('action'=>'database'));
                //echo $form->input('driver',array('value'=>!empty($driver)? $driver:'mysql'));
                echo $form->input('host',array('value'=>!empty($host)? $host:'localhost'));
                echo $form->input('login',array('value'=>!empty($login)? $login:'','label'=>'MySQL Username'));
                echo $form->input('password',array('value'=>!empty($password)? $password:'','type'=>'password','label'=>'MySQL Password'));
                echo $form->input('database',array('value'=>!empty($database)? $database:'mymeeting_db','label'=>'Database Name'));
		//Changes to cater the table with prefix on 20/10/2010 - by Winnie		
		echo $form->input('prefix',array('value'=>!empty($prefix)? $prefix:'','label'=>'Table Prefix'));
                //echo $form->input('port',array('value'=>!empty($port)? $port:''));
                //echo $form->input('root_password',array('label'=>'MySQL Root Password'));
            ?>
        </div>
    </fieldset>
    <p>&nbsp;</p>
    <?php echo $form->button('Back', array('type'=>'button', 'onclick'=>'parent.location=\'dircheck\''));?>&nbsp;
    <?php if (!empty($connected)):?>
        <?php echo $form->button('Next',array('type'=>'button','onclick'=>'parent.location=\'language\'')); ?>
    <?php else:?>
        <?php echo $form->button('Submit',array('type'=>'submit'));?>
    <?php endif;?>
    <?php echo $form->end();?>
</div>


